package sk.marek.barak.data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Date;

public class NewAnnoucement implements Serializable, GetTimeAndItems{
	private Atributes atributes;
	private Date date;
	private String division;
	private String annnoucementDocumentNumber;
	private Boolean firstLoad;
	
	
	
	@Override
	public int getTotalTime() {
		
		return atributes.getTotalTime();
	}

	@Override
	public List<String> getItems() {
		List<String> items = new ArrayList<String>();
		items.add("Annoucement Document number");
		items.add(annnoucementDocumentNumber);
		
		items.add("Division");
		items.add(division);
		
		items.add("First Load");
		items.add(firstLoad.toString());
		
		items.add("Date");
		items.add(date.toString());
		
		items.addAll(atributes.getItems());
		return items;
	}

	@Override
	public List<Integer> getAmount() {
		return atributes.getAmount();
	}

	@Override
	public List<Integer> getTimes() {
		return atributes.getTimes();
	}

	public Atributes getAtributes() {
		return atributes;
	}

	public void setAtributes(Atributes atributes) {
		this.atributes = atributes;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDivision() {
		return division;
	}

	public void setDivision(String division) {
		this.division = division;
	}

	public String getAnnnoucementDocumentNumber() {
		return annnoucementDocumentNumber;
	}

	public void setAnnnoucementDocumentNumber(String annnoucementDocumentNumber) {
		this.annnoucementDocumentNumber = annnoucementDocumentNumber;
	}

	public Boolean getFirstLoad() {
		return firstLoad;
	}

	public void setFirstLoad(Boolean firstLoad) {
		this.firstLoad = firstLoad;
	}
	
	@Override
	public String toString(){
		return "Annoucement document number: " + annnoucementDocumentNumber + 
				"\nDate: " + date.toString() + 
				"\nDivision: "+ division + 
				"\nFirst Load: "+ firstLoad+
				"\n"+atributes.toString();
	}

}
